﻿<%@ Page Title="网上互动管理" Language="C#" MasterPageFile="~/Admin/FormPage.master" AutoEventWireup="true" 
    CodeFile="CommunicateForm.aspx.cs" Inherits="NewsPub_CommunicateForm" ValidateRequest="false"%>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="C">
    <div class="navigation"><a href="javascript:history.go(-1);" class="back">后退</a></div>
		<div id="contentTab">
            <ul class="tab_nav">
                <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">网上互动管理</a></li>
            </ul>
            <div class="tab_con" style="display: block;">         
                 <table class="form_table">
				<col width="180px"/><col/>
       <tbody>
        <tr>
            <th>编号：(不支持更改)</th>
            <td>
            
                    <asp:TextBox ID="frmReferenceNumber" runat="server" CssClass="txtInput normal "  ReadOnly="true" Width="600px"></asp:TextBox>                    
                    </td>
              </tr>
           <%--<tr>
            <th>姓名：</th>
            <td>
            
                    <asp:TextBox ID="frmName" runat="server" CssClass="txtInput normal " ReadOnly="true" ></asp:TextBox>                    
                    </td>
              </tr>--%>
           <%--<tr>
            <th>职业：</th>
            <td>
            
                  <asp:TextBox ID="frmOccupation" runat="server" CssClass="txtInput normal digits" ></asp:TextBox>
                <XCL:DropDownList ID="frmOccupation" runat="server" DataTextField="TreeNodeName2"
                                DataValueField="ID" AppendDataBoundItems="True" ToolTip="请选择分类" >
                            </XCL:DropDownList>
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="FindAllChildsByParent"
                                DataObjectTypeName="NewsPub.Occupation" TypeName="NewsPub.Occupation">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="0" Name="parentKey" Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                  </td>
              </tr>--%>
           <%--<tr><th>电子邮箱：</th>
            <td>
            
                    <asp:TextBox ID="frmEmail" runat="server" CssClass="txtInput normal " ReadOnly="true" ></asp:TextBox>                    
                    </td></tr>
           <tr>--%>
            <th>标题：(管理员可更改)</th>
            <td>
            
                    <asp:TextBox ID="frmTitle" runat="server" CssClass="txtInput normal " ReadOnly="<%# Entity.isAdmin %>" Width="600px" ></asp:TextBox>                    
                    </td>
              </tr><tr>
            <th>内容：(不支持更改)</th>
            <td>
            
                    <%--<asp:TextBox ID="frmContent" runat="server" CssClass="txtInput normal " ></asp:TextBox>--%>  
                <textarea id="frmContent" name="frmBody" runat="server" style="width:840px;height:250px"></textarea>
                <link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="/kindeditor/plugins/code/prettify.js"></script>
		<script>
		    KindEditor.ready(function (K) {
		        var editor = K.create('#ctl00_C_frmContent', {
		            readonlyMode: true
		        });
		        // 设置成只读状态
		        //K('input[name=readonly]').click(function () {
		        //    editor.readonly();
		        //});
		        // 取消只读状态
		        //K('input[name=cancel]').click(function () {
		        //    editor.readonly(false);
		        //});
		    });
		</script>
                <%--<link rel="stylesheet" href="/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="/kindeditor/plugins/code/prettify.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor = K.create('#ctl00_C_frmContent', {
	            cssPath: '../kindeditor/plugins/code/prettify.css',
	            uploadJson: '../kindeditor/upload_json.ashx',
	            fileManagerJson: '../kindeditor/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                //	                K.ctrl(document, 13, function () {
	                //	                    self.sync();
	                //	                    K('form[name=aspnetForm]')[0].submit();
	                //	                });
	                //K.ctrl(self.edit.doc, 13, function () {
	                //    self.sync();
	                //    K('form[name=aspnetForm]')[0].submit();
	                //});
	            }
	        });
	        prettyPrint();

	    });
	</script>                          --%>
                    </td>
              </tr><tr>
            <th>可网上公开：(管理员可更改)</th>
            <td>
                            
                <%--<asp:CheckBox ID="frmPublishable" runat="server" Text="可网上公开" />--%>     
                <asp:RadioButtonList ID="frmPublishable" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Enabled="<%# Entity.isAdmin %>">
                                <asp:ListItem Value="True">可以在网上公开 </asp:ListItem>
                                <asp:ListItem Value="False">不在网上公开 </asp:ListItem>
                            </asp:RadioButtonList>           
                </td>
              </tr>
           <%--<tr>
            <th>添加时间：</th>
            <td>
                            
                        <XCL:DateTimePicker ID="frmCreateTime" runat="server"  ></XCL:DateTimePicker>    
                                    
                </td>
              </tr>--%>
           <tr>
            <th>回复：</th>
            <td>
            
                    <%--<asp:TextBox ID="frmRevert" runat="server" CssClass="txtInput normal " ></asp:TextBox>--%>  
                <textarea id="frmReply" name="frmReply" runat="server" style="width:840px;height:250px" ></textarea>
                <script>
                    KindEditor.ready(function (K) {
                        var editor = K.create('#ctl00_C_frmReply', {
                            cssPath: '../../kindeditor/plugins/code/prettify.css',
                            uploadJson: '../../kindeditor/upload_json.ashx',
                            fileManagerJson: '../../kindeditor/file_manager_json.ashx',
                            allowFileManager: true,
                            afterCreate: function () {
                                var self = this;
                                //	                K.ctrl(document, 13, function () {
                                //	                    self.sync();
                                //	                    K('form[name=aspnetForm]')[0].submit();
                                //	                });
                                //K.ctrl(self.edit.doc, 13, function () {
                                //    self.sync();
                                //    K('form[name=aspnetForm]')[0].submit();
                                //});
                            }
                        });
                        prettyPrint();

                    });
	</script>            
                    </td>
              </tr>
           <%--<tr>
            <th>回复时间：</th>
            <td>
                            
                        <XCL:DateTimePicker ID="frmRevertTime" runat="server" ></XCL:DateTimePicker>    
                                    
                </td>
              </tr>--%>
           <tr>
            <th>审核：</th>
            <td>
                            
               
                <asp:RadioButtonList ID="frmVerified" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem Value="True">审核通过，并邮件回复 </asp:ListItem>
                                <asp:ListItem Value="False">仅邮件回复 </asp:ListItem>
                            </asp:RadioButtonList>                 
                </td>
              </tr>
           <tr>
            
              </tr><tr>
            <th>分类：(可更改)</th>
            <td><asp:RadioButtonList ID="frmClassisID" runat="server" RepeatDirection="Horizontal" DataSourceID="fcods" DataTextField="Name" DataValueField="ID" Width="500" RepeatLayout="Flow" >
                            </asp:RadioButtonList>
                            <%--<XCL:DropDownList ID="DropDownList1" runat="server" DataTextField="TreeNodeName2"
                    DataValueField="ID" AppendDataBoundItems="True" DataSourceID="ods" ToolTip="请选择分类" >
                </XCL:DropDownList>--%>
                <asp:ObjectDataSource ID="fcods" runat="server" SelectMethod="FindAllChildsNoParent"
                    DataObjectTypeName="NewsPub.Classis" TypeName="NewsPub.Classis">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="49" Name="parentKey" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须选择一个！！！" ControlToValidate="frmClassisID"></asp:RequiredFieldValidator>
            
                   <%--<asp:TextBox ID="frmClassisID" runat="server" CssClass="txtInput normal digits" ></asp:TextBox>--%>
                <%--<XCL:DropDownList ID="frmClassisID" runat="server" DataTextField="TreeNodeName2"
                    DataValueField="ID" AppendDataBoundItems="True" DataSourceID="ods" ToolTip="对分类进行调整" >
                </XCL:DropDownList>
                <asp:ObjectDataSource ID="ods" runat="server" SelectMethod="FindAllChildsByParent"
                    DataObjectTypeName="NewsPub.Classis" TypeName="NewsPub.Classis">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="45" Name="parentKey" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>--%>
                  </td>
              </tr>

                <tr><th></th>
				<td>
				<asp:Button ID="btnSave" runat="server" Text="提交保存" CssClass="btnSubmit" />
				</td>
				</tr>
				</tbody>
				</table>
            </div>            
        </div>        
</asp:Content>